package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.valid.ValidInsertGroup;
import com.ruoyi.common.valid.ValidUpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description TODO
 * @ClassName BsSmartKefu
 * @Author kenn
 * @Version 1.0.0
 * @Date 2023年11月27日 11:15:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("bs_smart_kefu")
@ApiModel(value = "智能客服字段")
public class BsSmartKefu extends BaseEntity {

    @TableId
    @ApiModelProperty("主键id")
    @NotNull(message = "主键id不能为空", groups = {ValidUpdateGroup.class})
    private Long id;

    @ApiModelProperty("关键词")
    @NotBlank(message = "关键词不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    private String searchKey;

    @ApiModelProperty("回复")
    @NotBlank(message = "回复不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    private String answer;

    @ApiModelProperty("权重 不传")
    @TableField(exist = false)
    private Integer weight;

}
